byte
Type
keyword
Summary
Designates a single byte as part of a chunk expression.
Syntax
byte
Description
Use the byte keyword to refer to a specific byte or bytes in a container.
A byte is an 8-bit unit and can only be reliably used with binary data.
The hierarchy of the new and altered chunk types is as follows:
byte w of codeunit x of codepoint y of char z of word ...
In versions prior to 7.0 the byte chunk was identical in functionality to the character chunk. For backwards compatibility the byte chunk returns the corresponding native character from Unicode text, or a "?" if nor reperesentable, but this behavior is deprecated and should not be used in new code.
Examples
get byte 1 of tString
put byte 12 to 14 of it into tAnswer
get the first byte of tString
repeat for each byte tByte in tString
Related
glossary: chunk expression, keyword, container
keyword: characters, codepoint, codeunits, character, codepoints, codeunit, bytes
Compatibility and Support
Introduced
LiveCode 4.0
OS
mac
windows
linux
ios
android
Platforms
desktop
server
mobile